package com.hsj.goldstore.adapter;

import android.graphics.Rect;
import android.support.v7.widget.RecyclerView;
import android.view.View;

/**
 * Created by Administrator on 2018/3/27.
 */

public class ItemDivider extends RecyclerView.ItemDecoration {
    private int divider =10;

    public ItemDivider() {
    }

    public ItemDivider(int divider) {
        this.divider = divider;
    }

    @Override
    public void getItemOffsets(Rect outRect, View view, RecyclerView parent, RecyclerView.State state) {
        outRect.set(0, 0, 0, divider);

    }
}
